package com.hengpeng.msls.domain;

import java.util.List;
/**
 * 分页
 * @author wuhaifei
 * @version 1.0 2012-6-2
 */
public class PageInfo
{
	private long totalcount =0;//所有记录总数
	private int pagesize =0;//每页记录数
	private int currentpage =0;//当前页号
	private String navigator = "";//分页导航条
	private List<?> list;//页面数据

	public long getTotalpage() {
		return totalcount % pagesize == 0 ? totalcount 
				   / pagesize : totalcount / pagesize + 1;
	}
	
	public long getTotalcount() {
		return totalcount;
	}

	public void setTotalcount(long totalcount) {
		this.totalcount = totalcount;
	}

	public int getPagesize() {
		return pagesize;
	}

	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}

	public int getCurrentpage() {
		return currentpage;
	}

	public void setCurrentpage(int currentpage) {
		this.currentpage = currentpage;
	}
	
	public String getNavigator() {
		return navigator;
	}

	public void setNavigator(String navigator) {
		this.navigator = navigator;
	}

	public List<?> getList() {
		return list;
	}

	public void setList(List<?> list) {
		this.list = list;
	}
	
}
